<!-- 头部 -->
<include file="Public:header" />

        <div class="index-wrapper" style="padding-top: 40px;">
            <div style="background: #fff;">
                <div style="height: 50px;border-bottom: 2px solid #FF8711;text-align: center;">
                    <a href="{:U('index/xm',array('id'=>$xm_info['id']))}" style="line-height: 50px;font-size: 16px;">项目详情</a>
                    <a href="{:U('index/record',array('id'=>$xm_info['id']))}" style="padding-left: 40px;line-height: 50px;font-size: 16px;color:#FF8711;">捐赠记录</a>
                    <!-- <a href="{:U('index/msg',array('id'=>$xm_info['id']))}" style="padding-left: 40px;line-height: 50px;font-size: 18px;">爱心留言</a> --> 
                    <a href="{:U('index/problems',['id'=>$xm_info['id']])}" style="padding-left: 40px;line-height: 50px;font-size: 16px;">常见问题</a>
                </div>
            </div>
            <div style="height: 50px;background: #F7F7F7;text-align: center;padding-top: 15px;">
            <?php if ($xz == 2) { ?>
                <a href="{:U('index/record',['id'=>$xm_info['id']])}" style="padding: 5px 12px;background: #fff;border-radius: 8px;color: #BBBBBB;">个人</a>
                &nbsp; &nbsp;&nbsp; &nbsp;
                <a href="{:U('index/record',['id'=>$xm_info['id'],'xz'=>2])}" style="padding: 5px 12px;background: #FF8711;border-radius: 5px;color: #fff;">学校</a>
                &nbsp; &nbsp;&nbsp; &nbsp;
                <a href="{:U('index/record',['id'=>$xm_info['id'],'xz'=>3])}" style="padding: 5px 12px;background: #fff;border-radius: 8px;color: #BBBBBB;">企业</a>
                &nbsp; &nbsp;&nbsp; &nbsp;
                <a href="{:U('index/record',['id'=>$xm_info['id'],'xz'=>4])}" style="padding: 5px 12px;background: #fff;border-radius: 8px;color: #BBBBBB;">慈善</a>
            <?php }elseif ($xz == 3) { ?>
                <a href="{:U('index/record',['id'=>$xm_info['id']])}" style="padding: 5px 12px;background: #fff;border-radius: 8px;color: #BBBBBB;">个人</a>
                &nbsp; &nbsp;&nbsp; &nbsp;
                <a href="{:U('index/record',['id'=>$xm_info['id'],'xz'=>2])}" style="padding: 5px 12px;background: #fff;border-radius: 8px;color: #BBBBBB;">学校</a>
                &nbsp; &nbsp;&nbsp; &nbsp;
                <a href="{:U('index/record',['id'=>$xm_info['id'],'xz'=>3])}" style="padding: 5px 12px;background: #FF8711;border-radius: 5px;color: #fff;">企业</a>
                &nbsp; &nbsp;&nbsp; &nbsp;
                <a href="{:U('index/record',['id'=>$xm_info['id'],'xz'=>4])}" style="padding: 5px 12px;background: #fff;border-radius: 8px;color: #BBBBBB;">慈善</a>
            <?php }elseif ($xz == 4) { ?>
                <a href="{:U('index/record',['id'=>$xm_info['id']])}" style="padding: 5px 12px;background: #fff;border-radius: 8px;color: #BBBBBB;">个人</a>
                &nbsp; &nbsp;&nbsp; &nbsp;
                <a href="{:U('index/record',['id'=>$xm_info['id'],'xz'=>2])}" style="padding: 5px 12px;background: #fff;border-radius: 8px;color: #BBBBBB;">学校</a>
                &nbsp; &nbsp;&nbsp; &nbsp;
                <a href="{:U('index/record',['id'=>$xm_info['id'],'xz'=>3])}" style="padding: 5px 12px;background: #fff;border-radius: 8px;color: #BBBBBB;">企业</a>
                &nbsp; &nbsp;&nbsp; &nbsp;
                <a href="{:U('index/record',['id'=>$xm_info['id'],'xz'=>4])}" style="padding: 5px 12px;background: #FF8711;border-radius: 5px;color: #fff;">慈善</a>
            <?php }else { ?>
                <a href="{:U('index/record',['id'=>$xm_info['id']])}" style="padding: 5px 12px;background: #FF8711;border-radius: 5px;color: #fff;">个人</a>
                &nbsp; &nbsp;&nbsp; &nbsp;
                <a href="{:U('index/record',['id'=>$xm_info['id'],'xz'=>2])}" style="padding: 5px 12px;background: #fff;border-radius: 8px;color: #BBBBBB;">学校</a>
                &nbsp; &nbsp;&nbsp; &nbsp;
                <a href="{:U('index/record',['id'=>$xm_info['id'],'xz'=>3])}" style="padding: 5px 12px;background: #fff;border-radius: 8px;color: #BBBBBB;">企业</a>
                &nbsp; &nbsp;&nbsp; &nbsp;
                <a href="{:U('index/record',['id'=>$xm_info['id'],'xz'=>4])}" style="padding: 5px 12px;background: #fff;border-radius: 8px;color: #BBBBBB;">慈善</a>
            <?php } ?>
            </div>

            <div class="product-list" style="background: #fff;padding: 10px;margin: 0px;">
            <?php foreach ($gers as $v) { ?>
                <a href="{:U('index/xm',array('id'=>$v['id']))}" style="width: 100%;height: 120px;">
                    <div style="float: left;border: 1px solid #d6c9c9;border-radius: 50%;">
                        <img src="__ROOT__{$v.face}" alt="" style="width: 100px;height: 100px;border-radius: 50%;">
                    </div>
                    <div style="height: 121px;padding-left: 120px;border-bottom: 1px solid #dbd0d0;">
                        <p style="font-size: 18px;width: 70%;padding-top: 12px;font-weight: bold;">{$v['name']?$v['name']:$v['school']}</p>
                        <p style="font-size: 15px;color: #A4A4A4;padding-top: 10px;">和<?php echo re_record($v['xm_id'],$v['id'])['count'] ?>位小伙伴凑得<span style="color: #FF8814;"><?php echo re_record($v['xm_id'],$v['id'])['num']?re_record($v['xm_id'],$v['id'])['num']:0 ?></span>本书</p>
                    </div>
                </a>
            <?php } ?>
            </div>

            <div class="tabbar-section">
                <ul id="J-tabbar" class="ui-flex tabbar-content">
                    <?php if (empty($_SESSION['name'])) { ?>
                    <li class="cell J-other">
                        <a class="tabbar-nav" href="{:U('user/login')}">
                            <span style="width: 80%;">发起一起捐</span>
                        </a>
                    </li>
                    <?php }else { ?>
                    <li class="cell J-other">
                        <?php if (empty($checkfq)) { ?>
                            <a class="tabbar-nav" href="{:U('faqi/one',array('xm_id'=>$xm_info['id']))}">
                                <span style="width: 80%;">发起一起捐</span>
                            </a>
                        <?php }else { ?>
                            <a class="tabbar-nav" href="{:U('user/fqj')}">
                                <span style="width: 80%;">发起列表</span>
                            </a>
                        <?php } ?>
                    </li>   
                    <?php } ?>
                    <li class="cell J-other" >
                        <a class="tabbar-nav" href="{:U('index/jw',array('xm_id'=>$xm_info['id']))}" style="background: #FF8711;">
                            <span style="width: 80%;color: #fff;">我要捐赠</span>
                        </a>
                    </li>
                </ul>
            </div>       
        </div>
    </body>
</html>